import axios from "../utils/req";
// 商品列表接口
// export const goods = () => axios({
//     url: '/v2/index_entry',
//     method: 'get'
// })

export const goods = () => axios({
    url: '/shopping/v2/restaurant/category',
    method: 'get'
})
// 个人中心登录
export const personal = data => axios({
    url: '/admin/login',
    method: 'post',
    data

})
// 登录页面
export const login = data => axios({
    url: '/v2/login',
    method: 'post',
    data
})
//商铺列表
export const shop = params => axios({
    url: '/shopping/restaurants',
    method: 'get',
    params
})
// export const out = () => axios({
//     url: '/admin/singout',
//     method: 'get'
// })